package com.gxa.user.service;

import com.gxa.common.exception.BusinessException;
import com.gxa.user.pojo.User;
import com.gxa.user.pojo.UserShipping;

import java.util.Map;

/**
 * Created by bill on 2020/1/6
 **/
public interface UserService {



    public Map<String,String>  login(String phone, String code) throws BusinessException;

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    public User queryUserByToken(String token) throws BusinessException;

    /**
     * 根据id查询用户收货地址
     * @param id
     * @return
     */
    public UserShipping queryUserShippingById(Long id);

}
